import request from '@/utils/request'

  //获取告警记录
  export const list = (query) => {
    return request({
      url: '/data/device/warning/page',
      method: 'get',
      params: query
    })
  }
  
 //新增告警
  export const addObj = (obj) => {
    return request({
      url: '/data/device/warning',
      method: 'post',
      data: obj
    })
  }
  
  //更新告警
  export const updateObj = (obj) => {
    return request({
      url: '/data/device/warning',
      method: 'put',
      data: obj
    })
  }
  
  //删除告警
  export const delObj = (productId) => {
    return request({
      url: '/data/device/warning/' + productId,
      method: 'delete'
    })
  }


